package com.binge.spring.aop.config;

import com.binge.spring.aop.service.BeanTestService;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class MyFactoryBean implements FactoryBean<BeanTestService> {

    @Override
    public BeanTestService getObject() throws Exception {
        return new BeanTestService();
    }

    @Override
    public Class<?> getObjectType() {
        return BeanTestService.class;
    }
}
